package indi.zhifa.engine.test;


import indi.zhifa.core.multidatasource.entity.EnableZfMultiDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableZfMultiDataSource
@MapperScans({
        @MapperScan(basePackages = "indi.zhifa.engine.test.gen.busy.**.mapper", sqlSessionFactoryRef = "sqlSessionFactory_busy"),
        @MapperScan(basePackages = "indi.zhifa.engine.test.gen.monitor.**.mapper", sqlSessionFactoryRef = "sqlSessionFactory_monitor")
})
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = {"indi.zhifa.core","indi.zhifa.engine.test"})
public class ZhiFaEngineTestApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(ZhiFaEngineTestApplication.class);
        //springApplication.addInitializers(new CustomApplicationContextInitializer());
        springApplication.run(args);
    }
}